/*
 * @Date: 2023-04-04 09:58:51
 * @LastEditTime: 2023-04-23 18:19:02
 */
import request from '@/utils/request'

const Api = {
  // 新增字符串
  STRING_NEW: '/string_mg/newString',
  // 自动翻译
  AUTO_TRANSLATE: '/string_mg/automaticTranslation',
  // 编辑字符串
  STRING_UPDATE: '/string_mg/updateString',
  // 字符串列表
  STRING_LIST: '/string_mg/stringList',
  // 修改字符串语言
  STRING_NEW_LANGUAGE: '/string_mg/newStringLanguage',
  // 删除字符串
  STRING_DELETE: '/string_mg/deleteString',
  // 字符串拖拽排序
  STRING_SORT: '/string_mg/stringSort',
  // 字符串详情
  STRING_INFO: '/string_mg/stringInfo',
  // 导出字符串
  STRING_Export: '/string_mg/stringExport'
}

export const newString = (data) => request.post(Api.STRING_NEW, data)

export const autoTrans = (data) => request.post(Api.AUTO_TRANSLATE, data)

export const updateString = (data) => request.post(Api.STRING_UPDATE, data)

export const stringList = (data) => request.post(Api.STRING_LIST, data)

export const newStringLanguage = (data) => request.post(Api.STRING_NEW_LANGUAGE, data)

export const deleteString = (data) => request.post(Api.STRING_DELETE, data)

export const stringSort = (data) => request.post(Api.STRING_SORT, data)

export const stringInfo = (data) => request.post(Api.STRING_INFO, data)

export const stringExport = (data) => request.get(Api.STRING_Export, data)
